package com.springbootjsp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    /**
     * 默认到登陆页
     */
    @RequestMapping("/aa")
    public String index() {
        return "login";
    }

    /**
     * 首页
     */
    @RequestMapping("/home")
    public String home() {
        return "home";
    }

}